//
//  MYSelectGroupTableViewCell.m
//  JQLive
//
//  Created by Bruce on 2020/3/31.
//  Copyright © 2020 JQLive. All rights reserved.
//

#import "MYSelectGroupTableViewCell.h"

@implementation MYSelectGroupTableViewCell

- (void)initView
{
    self.avatarImgView = [[UIImageView alloc] init];
    self.avatarImgView.layer.masksToBounds = YES;
    self.avatarImgView.contentMode = UIViewContentModeScaleAspectFill;
    self.avatarImgView.layer.cornerRadius = 4;
    [self.contentView addSubview:self.avatarImgView];
    
    self.nameLabel = [[UILabel alloc] init];
    self.nameLabel.textColor = MY_Text_Color_Theme1;
    self.nameLabel.font = [UIFont systemFontOfSize:16];
    self.nameLabel.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:self.nameLabel];
    
    UIView *lineView = [[UIView alloc] init];
    lineView.backgroundColor = MY_Line_Dfult_Color2;
    [self.contentView addSubview:lineView];
    
    [self.avatarImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
        make.left.equalTo(@(MY_Padding));
        make.width.height.equalTo(@36);
    }];
    
    [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
        make.left.equalTo(self.avatarImgView.mas_right).offset(10);
    }];
    
    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.contentView);
        make.height.equalTo(@(0.5));
    }];
}

@end
